/**
 * @Copyright 
 * @Project inetdisk
 * @CreateTime 2015-10-28 下午4:52:12
 */
package ren.wxyz.inetdisk.model;

import java.io.Serializable;
import java.sql.Timestamp;

/**
 * <p>
 * 文件模型
 * </p>
 * @Author wxyz
 * @CreateTime 2015-10-28 下午4:52:12 init class
 */
public class FileInfo implements Serializable {
	private static final long serialVersionUID = 483520020662480166L;

	/**
	 * 主键标识
	 */
	private Long id;
	
	/**
	 * 上级ID
	 */
	private Long upperId;
	
	/**
	 * 文件名称
	 */
	private String name;
	
	/**
	 * 文件大小，单位是字节
	 */
	private Long size;
	
	/**
	 * 文件的类型，1-目录，0-文件
	 */
	private String fileType;
	
	/**
	 * 文件媒体类型，在字典中定义
	 */
	private String mediaType;
	
	/**
	 * 文件的存储路径
	 */
	private String storagePath;
	
	/**
	 * 文件摘要，sha-256
	 */
	private String fileHash;
	
	/**
	 * 文件删除标志，1-删除，0-未删除
	 */
	private String delFlag;
	
	/**
	 * 文件所属用户
	 */
	private Long userId;
	
	/**
	 * 备注信息
	 */
	private String remark;
	
	/**
	 * 创建时间
	 */
	private Timestamp createdTime;
	
	/**
	 * 修改时间
	 */
	private Timestamp updatedTime;

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Long getUpperId() {
		return upperId;
	}

	public void setUpperId(Long upperId) {
		this.upperId = upperId;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Long getSize() {
		return size;
	}

	public void setSize(Long size) {
		this.size = size;
	}

	public String getFileType() {
		return fileType;
	}

	public void setFileType(String fileType) {
		this.fileType = fileType;
	}

	public String getMediaType() {
		return mediaType;
	}

	public void setMediaType(String mediaType) {
		this.mediaType = mediaType;
	}

	public String getStoragePath() {
		return storagePath;
	}

	public void setStoragePath(String storagePath) {
		this.storagePath = storagePath;
	}

	public String getFileHash() {
		return fileHash;
	}

	public void setFileHash(String fileHash) {
		this.fileHash = fileHash;
	}

	public String getDelFlag() {
		return delFlag;
	}

	public void setDelFlag(String delFlag) {
		this.delFlag = delFlag;
	}

	public Long getUserId() {
		return userId;
	}

	public void setUserId(Long userId) {
		this.userId = userId;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public Timestamp getCreatedTime() {
		return createdTime;
	}

	public void setCreatedTime(Timestamp createdTime) {
		this.createdTime = createdTime;
	}

	public Timestamp getUpdatedTime() {
		return updatedTime;
	}

	public void setUpdatedTime(Timestamp updatedTime) {
		this.updatedTime = updatedTime;
	}

	public static long getSerialversionuid() {
		return serialVersionUID;
	}
}
